/**
 * 
 */
package org.crud4j.core;

import java.util.List;

/**
 * @author Edgar Poce
 */
public class CrudBrowsePage {

	private List<CrudBean> beans;

	private Integer position;

	private boolean last;

	/**
	 * @return Returns the beans.
	 */
	public List<CrudBean> getBeans() {
		return beans;
	}

	/**
	 * @param beans
	 *            The beans to set.
	 */
	public void setBeans(List<CrudBean> beans) {
		this.beans = beans;
	}

	/**
	 * @return Returns the last.
	 */
	public boolean isLast() {
		return last;
	}

	public boolean isFirst() {
		return this.position.equals(0);
	}

	/**
	 * @param last
	 *            The last to set.
	 */
	public void setLast(boolean last) {
		this.last = last;
	}

	public Integer getPosition() {
		return position;
	}

	public void setPosition(Integer position) {
		this.position = position;
	}

}
